# -*- encoding:utf-8 -*-
# @Time : 2025/3/16 20:15
# @Author : xunter
# @Email : 3133739348@qq.com
# @File : urls.py
# @Software : PyCharm
from rest_framework import routers

from shopping.views import ClassificationViewSet, CommodityViewSet, ShoppingCartViewSet, OrderViewSet, PaymentViewSet

urlpatterns = []
router = routers.DefaultRouter()
router.register('classifications',ClassificationViewSet)
router.register('commoditys',CommodityViewSet)
router.register('cart',ShoppingCartViewSet)
router.register('order',OrderViewSet)
router.register('payments',PaymentViewSet)
urlpatterns += router.urls